import request from '@/utils/request'

// 广告位列表 -分页
export const getPosListApi = data => {
  return request.get('/ydd_advpos/list', {
    params: data
  })
}

// 广告位添加
export const addPosApi = data => {
  return request.post('/ydd_advpos/add', data)
}

// 广告位详情
export const getPosInfoApi = id => {
  return request.get('/ydd_advpos/rowInfo?id=' + id)
}

// 广告位修改
export const editPosApi = data => {
  return request.post('/ydd_advpos/update', data)
}

// 广告位删除
export const delPosApi = id => {
  return request.get('/ydd_advpos/del?id=' + id)
}
